###################################################################################
README for Distribution of Climate Damages in Convergence-Consistent Growth Projections

For further information or if you have found any errors, please contact Anthony Harding at tony.harding@gatech.edu

This folder contains all the code and data required to replicate the results in the text and supplementary materials.

Replication requires the use of both R and Stata. Historical climate-economy estimation is conducted in Stata. Projections and generation of figures are conducted in R. The results for this paper were generated using Stata/MP 15 and R 3.4.1.

Below are a description of the code and data and instructions for replicating the results, tables, and figures
###################################################################################



###################################################################################
Navigation
###################################################################################
Code:
	Contains all scripts
	
Data:
	Contains input data as well as output results
	
tablesandfigures:
	Contains final tables and figures
	



###################################################################################
Code Descriptions

All code is found under the code folder
Note: Users must change working directory to the directory files were unzipped in each of the files listed below
###################################################################################

#############
01_Regresions
#############

ComparisonRegressions_Text.do:
	Runs regressions for all 7 empirical models. Output are .csv and .tex files with the coefficients for each of the models to create Table 1

ComparisonRegressions_Projections.do:
	Runs regressions for all 7 empirical models. Output are .csv and .tex files with the coefficients for each of the models for use in projections

SteadyStateGrowthPaths.do:
	For column (5) estimating equation from ComparisonRegressions_Text.do, outputs country-specific steady state growth estimates

ComparisonRegressions_TauAnalysis.do:
	Runs regressions for different values of \tau in a bounded but exponential country-specific time trend for use in Appendix B.2

ComparisonRegressions_IV.do:
	Runs regressions to explore effect of IV vs OLS when using lagged growth for use in Appendix C.3



#############
02_Projections
#############

getTemperatureChange.R:
	Generates global and country-level population-weighted temperature change for RCP8.5. Output is a .csv file with country-level temperature change.

getPrecipitationChange.R:
	Generates global and country-level population-weighted precipitation change for RCP8.5. Output is a .csv file with country-level precipitation change.

ComparisonProjections_RCP85.R:
	Generates projections for all 7 econometric models for the RCP8.5 climate scenario. Output is a .Rdata file with projections for each empirical model and SSP.

ComparisonProjections_RCP85 - Tau Analysis.R:
	Generates projections for the tau analysis regressions estimated in ComparisonRegressions_TauAnalysis.do




#############
03_visuals
#############

Figure1a_and_8.R:
	Plots of global economic projections

Figure1bc_and_10_11.R:
	Plots losses for CC vs. no CC against time and vs. avg. global temp increase
	
Figure2.R
	Generates a map of country level Plots losses for CC vs. no CC in 2099 across models

Figure3a_and_9.R:
	Generates box plot of country-level growth rates in 2099 across models

Figure3b:
	Plots Lorenz curve for different econometric models and time periods

Figure3c:
	Plots Gini Coefficient of corresponding Lorenz curve from Figure3b.R over time
	
Figure4:
	Plots Lorenz curve for baseline SSP data
	
Figure5.R
	Generates a map of country level temperature changes under RCP8.5
	
Figure6.R
	Plots marginal damages across temperatures for each model
	
Figure7.R
	Plots empirical estimates of country-level steady-state growth rates

Figure12.R
	Plots marginal damages across temperatures for different values of \tau

Figure13.R
	Plots losses for CC vs. no CC against time for different values of \tau











